import { _decorator, Component, Node, tween, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('AutoScale')
export class AutoScale extends Component {
    start() {
        tween(this.node)
            .to(0.5, { scale: new Vec3(1.2, 1.2, 1.2) })
            .to(0.5, { scale: new Vec3(1, 1, 1) })
            .union()
            .repeatForever()
            .start();
    }
}


